Skip to content

Python: module for import time flow#14617

Merged
yoff merged 6 commits intogithub:mainfrom
yoff:python/module-for-import-time-flow
Nov 2, 2023
Merged

Python: module for import time flow#14617
yoff merged 6 commits intogithub:mainfrom
yoff:python/module-for-import-time-flow

Conversation

@yoff
Copy link
Copy Markdown
Contributor

@yoff yoff commented Oct 27, 2023

The logic for separating local flow into import time and runtime was duplicated a few times.
Create a module for it instead, and add a good qldoc.

The logic for adding flow out of post-update-nodes
was also duplicated, so I added a module for that also.

The two modules are now only used together (except in one test file).
I did not fuse them, though, as I think they may not be used
together in the case of use-use-flow.

yoff added 2 commits October 27, 2023 15:07
The logic for separating local flow into _import time_
and _runtime_ was duplicated a few times.
Create a module for it instead, and add a good qldoc.
The logic for adding flow out of post-update-nodes
was also duplicated, so I added a module for that also.

The two modules are now only used together. I did not
fuse them, though, as I think they may not be used
together in the case of use-use-flow.
@yoff yoff force-pushed the python/module-for-import-time-flow branch from efa3b58 to 1f8a51c Compare October 27, 2023 13:08
@yoff yoff marked this pull request as ready for review October 27, 2023 13:09
@yoff yoff requested a review from a team as a code owner October 27, 2023 13:09
@yoff yoff added the no-change-note-required This PR does not need a change note label Oct 27, 2023
Copy link
Copy Markdown
Contributor

@tausbn tausbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good to me. I have added a few comments here and there. 🙂

Comment thread python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll Outdated
Comment thread python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll Outdated
Comment thread python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll Outdated
Comment thread python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll Outdated
Comment thread python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll Outdated
Comment thread python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll Outdated
Comment thread python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll Outdated
Co-authored-by: Taus <tausbn@github.com>
@yoff yoff requested a review from tausbn October 31, 2023 20:52
Copy link
Copy Markdown
Contributor

@tausbn tausbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes! 👍

@yoff yoff merged commit c26c68c into github:main Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants